package com.bugly.test;

import android.content.Context;
import android.os.Bundle;

import com.tencent.bugly.crashreport.CrashReport;
import com.unity3d.player.UnityPlayerActivity;

public class MainActivity extends UnityPlayerActivity
{
    private static Context m_context;
    private static MainActivity mainActivity;

    private String bugly_appid = "appid";

    @Override
    protected void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        mainActivity = this;
        m_context = mainActivity.getApplicationContext();

        CrashReport.initCrashReport(m_context.getApplicationContext(), bugly_appid, true);
    }

    //Bugly测试
    public void BuglyTest()
    {
        CrashReport.testJavaCrash();
    }
}